import request from '@/config/axios'

export const getContentList = async (params) => {
  return await request.getOriginal({
    url: '/amp/train-content/page',
    params
  })
}

export const getContentDetail = async (params) => {
  return await request.getOriginal({
    url: '/amp/train-content/byId',
    params
  })
}

export const addContentModel = async (data) => {
  return await request.postOriginal({
    url: '/amp/train-content/add',
    data
  })
}

export const delContentModel = async (data) => {
  return await request.postOriginal({
    url: '/amp/train-content/delete',
    data
  })
}
export const editContentModel = async (data) => {
  return await request.postOriginal({
    url: '/amp/train-content/edit',
    data
  })
}
